#ifndef MAINEDIT_H
#define MAINEDIT_H
#include <QLineEdit>
#include <QMouseEvent>

class MainEdit : public QLineEdit
{
    Q_OBJECT
public:
    MainEdit();
    explicit MainEdit(QWidget *parent = nullptr);
    void SetIsDownKeyBoard(bool isNum);
protected:
    //重写事件
    bool event(QEvent *event) override;
private:
    bool isDownKeyBoard=false;
};

#endif // MAINEDIT_H
